package cn.xin.org.domain;

import cn.xin.base.domain.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Employee extends BaseDomain {

    @NotBlank(message = "姓名不能为空")
    private String username;
    @NotBlank(message = "手机号不能为空")
    private String phone;
    @NotBlank(message = "邮箱不能为空")
    private String email;
    private String salt;
    @NotBlank(message = "密码不能为空")
    private String password;
    private Integer age;
    private Integer state;
    private Long departmentId;
    private Long logininfoId;
    private Long shopId;

    private Department depart;

    //重复密码
    private String comfirmPassword;


    //角色的id
    private List<Long> roles;
}
